#ifndef __DIR_STACK__
#define __DIR_STACK__

#include "func.h"

typedef struct node_s {
    char data[1024];
    struct node_s *pNext;
} node_t;

typedef struct dirStack_s {
    node_t *pFront;
    int size;
} dirStack_t;

int initStack(dirStack_t *dirStack, char *path);

int initStack2(dirStack_t *dirStack, MYSQL *mysql, char *username);

int enStack(dirStack_t *dirStack, char *path);

int deStack(dirStack_t *dirStack);

int visitStack(dirStack_t *dirStack, char *ret);
#endif
